/**
 * ******************************************************************************************************
 * @App: angularPractice
 * @author: carrie
 * @type: route
 * @src: app.route.ts
 * @descriptions:
 * 主路由
 *
 * ******************************************************************************************************
 */
import { RouterModule } from '@angular/router';


export const appRoutes = [
  {
    path: '',
    redirectTo: 'home',
    pathMatch: 'full'
  },
  {
    path: 'home',
    loadChildren: './home/home.module#HomeModule'
  },
  {
    path: 'charts',
    loadChildren: './charts/charts.module#ChartsModule'
  },
  {
    path: 'shopping',
    loadChildren: './shopping/shopping.module#ShoppingModule'
  }
];
















/*
import { RouterModule } from "@angular/router";

import { LinechartsComponent } from "./linecharts/linecharts.component";
import { BarchartsComponent} from "./barcharts/barcharts.component";

export const appRoutes = [
  {
    path: 'lineCharts',
    component: LinechartsComponent
  },
  {
    path: 'barCharts',
    component: BarchartsComponent
  },
  {
    path: '**',
    component: LinechartsComponent
  }
];
*/
